package com.bwie.controller;

import com.bwie.pojo.Menu;
import com.bwie.service.MenuService;
import com.bwie.service.impl.MenuServiceImpl;
import com.bwie.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * 权限表(tb_menu)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/user/user")
@Api(tags = "菜单管理")
public class MenuController {
    /**
     * 服务对象
     */
    @Autowired
    private MenuService menuService;

    /**
     * @author: 鑫仔
     * @description: 获取动态菜单
     * @params: []
     * @return: com.bwie.utils.R
     * @date: 2025/7/18 20:29
     */
    @ApiOperation("动态菜单")
    @PostMapping("getMenuTree")
    public R getMenuTree() {
        return menuService.getMenuTree();
    }

}
